﻿using Newtonsoft.Json;
using System;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    [Serializable]
    public class HuyiSmsResponse
    {
        /// <summary>
        /// 返回状态码
        /// </summary>
        [JsonProperty("code"), JsonPropertyName("code")]
        public int Code { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        [JsonProperty("msg"), JsonPropertyName("msg")]
        public string Message { get; set; }

        /// <summary>
        /// 单条发送短信返回的短信ID
        /// </summary>
        [JsonProperty("smsid"), JsonPropertyName("smsid")]
        public string SmsId { get; set; }

        /// <summary>
        /// 批量发送短信返回的批次ID
        /// </summary>
        [JsonProperty("batchid"), JsonPropertyName("batchid")]
        public string BatchId { get; set; }

        /// <summary>
        /// 短信余量
        /// </summary>
        [JsonProperty("num"), JsonPropertyName("num")]
        public int Num { get; set; }

    }
}
